import { lazy } from "react";
const Home = lazy(() => import("@/pages/Home"));
const Finance = lazy(() => import("@/pages/Finance"));
const SalesStatistics = lazy(() => import("@/pages/Finance/SalesStatistics"))
import { DesktopOutlined, MoneyCollectOutlined } from '@ant-design/icons';
const MenuList = [
    {
        path: "/home",
        element: <Home />,
        meta: {
            title: "首页",
            icon: <DesktopOutlined />,
        },

    },
    {
        path: "/finance",
        element: <Finance />,
        children: [
            {
                path: '/finance/salesStatistics',
                element: <SalesStatistics />,
                meta: {
                    title: "销售统计",
                },
            }
        ],
        meta: {
            title: "财务",
            icon: <MoneyCollectOutlined />,
        },
    },
]
export default MenuList
